/*
 * @Author: wangcb
 * @Email: wangcbgg@163.com
 * @Date: 2021-10-21 17:30:18
 * @LastEditTime: 2021-10-21 17:30:51
 * 请求动画帧
 */
const requestAFrame = (() => {
    return window.requestAnimationFrame // @ts-ignore
        || window.webkitRequestAnimationFrame // @ts-ignore
        || window.mozRequestAnimationFrame // @ts-ignore
        || window.oRequestAnimationFrame // @ts-ignore
        || window.msRequestAnimationFrame
        || (callback => window.setTimeout(callback, 1000 / 60));
})();
export default requestAFrame;
